import prompt from '@system.prompt'
export default {
    data: {
        title: 'World',
        placements:['left','right','top','bottom','topLeft','topRight','bottomLeft','bottomRight'],
        placementIndex:0,
    },
    changePlacement(e){
        this.placementIndex=e;
    },
    visibilitychange(e) {
        prompt.showToast({
            message: 'visibility change visibility: ' + e.visibility,
            duration: 3000,
        });
    },
    showpopup() {
        this.$element("popup").show();
    },
    hidepopup() {
        this.$element("popup").hide();
    },
}
  